package Dome06;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

public class city {
    static Scanner yy =new Scanner(System.in);

    public static void main(String[] args) {
        System.out.println("请输入省份");
        while (true){
            HashMap<String, ArrayList<String>> hashMap = new HashMap<>();
            ArrayList arrayList = new ArrayList<>();
            arrayList.add("大理，曲靖，昆明，西双版纳，丽江");

            ArrayList arrayList1 = new ArrayList<>();
            arrayList1.add("深圳，珠海，汕头，广州，佛山");

            ArrayList arrayList2 = new ArrayList<>();
            arrayList2.add("周口，开封，焦作，郑州，洛阳");

            ArrayList arrayList3 = new ArrayList<>();
            arrayList3.add("枣庄，烟台，济南，淄博，日照");

            hashMap.put("云南", arrayList);
            hashMap.put("广东", arrayList1);
            hashMap.put("河南", arrayList2);
            hashMap.put("山东", arrayList3);

            String next = yy.next();
            ArrayList<String> strings = hashMap.get(next);
            System.out.println(strings);
        }
        }
    }
}
